Fix some inconsistent deprecations
authorKjell Ahlstedt <kjell.ahlstedt@bredband.net>
Fri, 5 Jul 2013 13:17:24 +0000 (15:17 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 9 Jul 2013 10:54:26 +0000 (06:54 -0400)
Some functions had only a deprecation comment in the .c file, or only a
deprecation annotation in the .h file. Add the missing parts.

https://bugzilla.gnome.org/show_bug.cgi?id=703616

gtk/gtkactiongroup.h
gtk/gtkcontainer.c
gtk/gtkiconhelper.c
gtk/gtknotebook.h
gtk/gtkstylecontext.h
gtk/gtkwidget.c

index eae4bbe3b43cfb5dabf2e05195b8c5541aea6283..625fe8976218f5acfb4bf420715757e6faa01b73 100644 (file)
@@ -178,9 +178,9 @@ gboolean        gtk_action_group_get_visible             (GtkActionGroup
 GDK_DEPRECATED_IN_3_10
 void            gtk_action_group_set_visible             (GtkActionGroup             *action_group,
                                                          gboolean                    visible);
-GDK_AVAILABLE_IN_3_6
+GDK_DEPRECATED_IN_3_10
 GtkAccelGroup  *gtk_action_group_get_accel_group         (GtkActionGroup             *action_group);
-GDK_AVAILABLE_IN_3_6
+GDK_DEPRECATED_IN_3_10
 void            gtk_action_group_set_accel_group         (GtkActionGroup             *action_group,
                                                           GtkAccelGroup              *accel_group);
 
index 989a36f30712fad2239aa32176f05c9be528d35d..b1be6fe9b52b2d649129c74682438ce8c0a9f30d 100644 (file)
@@ -1889,6 +1889,12 @@ gtk_container_real_check_resize (GtkContainer *container)
  *  so we simply need to reallocate and let the allocation
  *  trickle down via GTK_WIDGET_ALLOC_NEEDED flags.
  */
+/**
+ * gtk_container_resize_children:
+ * @container: a #GtkContainer
+ *
+ * Deprecated: 3.10
+ **/
 void
 gtk_container_resize_children (GtkContainer *container)
 {
index a516d2754231c94b2782b10297e53e7c934d90ca..c1af7895232b45abd0454f8dbefede5c65467ddf 100644 (file)
@@ -748,11 +748,13 @@ _gtk_icon_helper_ensure_surface (GtkIconHelper *self,
       break;
 
     case GTK_IMAGE_STOCK:
+      G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
       icon_set = gtk_style_context_lookup_icon_set (context, self->priv->stock_id);
       if (icon_set != NULL)
        ensure_surface_for_icon_set (self, context, icon_set);
       else
        surface = NULL;
+      G_GNUC_END_IGNORE_DEPRECATIONS;
       break;
 
     case GTK_IMAGE_ICON_SET:
index dd32066df8d8c95e3f8d99fa98cdb8c32260da9e..febfa9e3b8d8311d5fed50311b139103ebc81a23 100644 (file)
@@ -217,9 +217,9 @@ void     gtk_notebook_set_scrollable       (GtkNotebook     *notebook,
                                            gboolean         scrollable);
 GDK_AVAILABLE_IN_ALL
 gboolean gtk_notebook_get_scrollable       (GtkNotebook     *notebook);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_4
 guint16  gtk_notebook_get_tab_hborder      (GtkNotebook     *notebook);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_4
 guint16  gtk_notebook_get_tab_vborder      (GtkNotebook     *notebook);
 
 /***********************************************************
index 59012edd989eead29620ccff8e39e4863a47be22..6b9dfd38b2646d1b032fd0518d1f49595a76fb6b 100644 (file)
@@ -878,10 +878,10 @@ GDK_AVAILABLE_IN_ALL
 void gtk_style_context_get_style          (GtkStyleContext *context,
                                            ...);
 
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_10_FOR(gtk_icon_theme_lookup_icon)
 GtkIconSet * gtk_style_context_lookup_icon_set (GtkStyleContext *context,
                                                 const gchar     *stock_id);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_10
 GdkPixbuf  * gtk_icon_set_render_icon_pixbuf   (GtkIconSet      *icon_set,
                                                 GtkStyleContext *context,
                                                 GtkIconSize      size);
@@ -1087,7 +1087,7 @@ void        gtk_render_activity    (GtkStyleContext     *context,
                                     gdouble              y,
                                     gdouble              width,
                                     gdouble              height);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_10_FOR(gtk_icon_theme_load_icon)
 GdkPixbuf * gtk_render_icon_pixbuf (GtkStyleContext     *context,
                                     const GtkIconSource *source,
                                     GtkIconSize          size);
index 9997e578e0340876e67472e1c5312765501a2e41..865892a75de95c386ebfee1b55c95e3c08f687e3 100644 (file)
@@ -9751,12 +9751,14 @@ gtk_widget_render_icon_pixbuf (GtkWidget   *widget,
   g_return_val_if_fail (size > GTK_ICON_SIZE_INVALID || size == -1, NULL);
 
   context = gtk_widget_get_style_context (widget);
+  G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
   icon_set = gtk_style_context_lookup_icon_set (context, stock_id);
 
   if (icon_set == NULL)
     return NULL;
 
   return gtk_icon_set_render_icon_pixbuf (icon_set, context, size);
+  G_GNUC_END_IGNORE_DEPRECATIONS;
 }
 
 /**